package cn.edu.scau.dormitory_management_system.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 
 * 
 * @author wanglingfu
 * @email 1006340605@qq.com
 * @date 2021-08-02 14:35:10
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_bill")
public class BillEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 账单id
	 */
	@TableId(type = IdType.AUTO)
	private Integer billId;
	/**
	 * 楼栋id
	 */
	private Integer dormBuildId;
	/**
	 * 宿舍号
	 */
	private String dormName;
	/**
	 * 水费
	 */
	private Double water;
	/**
	 * 电费
	 */
	private Double energy;

	/**
	 * 总和
	 */
	private Double surplus;

	/**
	 * 生成账单时间
	 */
	private Date billTime;

	public Double getSurplus() {
		return surplus;
	}

	public void setSurplus(Double surplus) {
		this.surplus = surplus;
	}
}
